<template>
	<view>
	<web-view :src="jxurl+src"></web-view>
	</view>
</template>

<script>
	var wv; 
	export default {
		data() {
			return {
				jxurl:'',
				src: ''
			}
		},
		computed: {
			vip(){
				return this.$store.state.vip;
			},
			user(){
				return this.$store.state.userinfo;
			}		
		},
		onLoad(item) {
			this.jxurl = item.jxurl
			this.src = item.url;
			this.title=item.title;
			this.ptname=item.ptname;
			if(this.vip==0){
				 this.showToast('您还不是会员');
					setTimeout(()=>{
				     uni.navigateBack()
			          },500) 
			       }
		    var currentWebview = this.$scope.$getAppWebview();
		    setTimeout(function() {
		    	wv = currentWebview.children()[0];
		    	wv.setStyle({
		    		videoFullscreen: 'landscape'
		    	});
		    }, 1000); 
		},
		onReady() {
			
		},
		methods: {
			
		}
	}
	
</script>

<style>
</style>
